import httpRequest from '@/utils/http'
import { LoginTypes ,LoginResponse } from '@/api/user/types'

enum userApi {
    login = '/login/cellphone',
}

export const login = (params: LoginTypes) => {
    return httpRequest<LoginTypes, LoginResponse>({
        url: userApi.login,
        method: 'post',
        data: params,
    })
}

